package com.supostacks.xuetangerp.controller;

import com.alibaba.fastjson.JSONObject;
import com.supostacks.rpc.server.dto.BaseDto;
import com.supostacks.rpc.server.dto.FeedbackDto;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/feedback")
@RestController
public class FeedbackController extends BaseController {
    @Override
    public BaseDto buildData(JSONObject json) {
        return JSONObject.toJavaObject(json, FeedbackDto.class);
    }

    @Override
    public BaseDto takeBaseDto() {
        return new FeedbackDto();
    }
}
